<? include_once("../../../../common/common_setting_unit.php"); //引入通用的设置文件?>

<?
//引入所有子系统信息
include_once("../../../../common/script/extender_import.php");

//**获取当前板块资料，必然载入，后续很多读取板块数据库的表格，都写成动态的了。
$_plate=$plate['basic'];



$table   = $table_prefix.$_plate['table']['data'];
$nid     = $_REQUEST['nid'];
$status  = $_REQUEST['status'];

$_data['ai_publish_status']=$status;

$_publish_status_sql=update_date($table,$_data,"nid",$nid);


sql_log($_publish_status_sql);
$query=mysql_query($_publish_status_sql) or die ('更新数据失败'.mysql_error().$_publish_status_sql);
mysql_close($con);


if($query){
    $arr['status'] = 200;
    $arr['info'] = '删除成功';
    die(json_encode($arr)) ;
}
else
{
    $arr['status'] = 201;
    $arr['info'] = '删除失败';
    die(json_encode($arr)) ;
}

?>



